package demo2;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-11-16
 * Time: 20:40
 */
class Base{
    private int x;
    private int y;

    public Base(int x, int y){
        this.x= x;
        this.y = y;
    }
    public int getX(){
        return x;
    }

    public final int getY() {
        return y;
    }
    public final int sum(){
        return getX() + getY();
    }
}

class Sub extends Base{
    public Sub(int x, int y){
        super(x,y);
    }

    public int getX(){
        return super.getX()*10;
    }
}


public class Test2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int x = sc.nextInt();
            int y = sc.nextInt();
            Sub sub = new Sub(x, y);
            int ret = sub.sum();
            System.out.println(ret);
        }
    }
}

